package com.wfx.controller;


import com.wfx.entity.PageDTO;
import com.wfx.entity.PageResult;
import com.wfx.entity.ViewCatTpl;
import com.wfx.service.IViewCatTplService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author zhu
 * @since 2021-01-22
 */
@RestController
@CrossOrigin
public class ViewCatTplController {

    @Autowired
    private IViewCatTplService iViewCatTplService;

    @RequestMapping("/tmp/findTmptByCid")
    public ViewCatTpl findCatByParentId(String catId){

        return iViewCatTplService.getById(catId);
    }
}
